package cn.itsource.org.mapper;

import cn.itsource.basic.mysuper.MyBaseMapper;
import cn.itsource.org.domain.UserAddress;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

public interface UserAddressMapper extends MyBaseMapper<UserAddress> {

    default List<UserAddress> findByUserId(Long userId){
        Example example = new Example(UserAddress.class);
        example.createCriteria()
                .andEqualTo("userId",userId);
        return this.selectByExample(example);
    }

}
